import Config from './utils/config.js'
import Request from './utils/request.js'
import cardRequest from './utils/cardRequest.js'

export default class {
  //游戏添加用户
  static addUserServ(params) {
    return Request({
        url: `rs-game-center-service/activity/gameActivityUser/add`,
        type: "POST",
        data: params
    })
}
  //下单发送模版消息
  static sendOrderProgressNotice(params) {
    return cardRequest({
      url:'applet/mobile/visitcard/member/sendOrderProgressNotice',
      type:'POST',
      headers: {
        "Content-type": "application/json"
      },
      data:params
    });
  }
  /*获取当前用户WEBIM账号信息*/
  static getUserIMSign(params){
    return cardRequest({
      url:'applet/mobile/visitcard/sign/getsign',
      type:'get',
      data:params
    });
  }
  //获取模版id列表
  static getTemplateList(params){
    return cardRequest({
      url:'applet/mobile/visitcard/msgTemplate/getCustomMsgTemplateList',
      type:'get',
      data:params
    });
  }
  static getBuryingPointPeople(params) {
    return Request({
      //todo:
      url: "app/user/account/qrcode/register/scan",
      type: "post",
      data: params,
     
    })
  }
  static getSceneLog(params) {
    return Request({
      //todo:
      url: `app/weixin/sceneLog?${params}`,
      type: "post",
      data: {},

    })
  }
  static getBarBadge(params){
    return Request({
      url: `app/message/count/${params}`,
      type: "get",
      data: {}
    })
  }
  static qrcodeStatus(params) {
    console.log(params)
    return Request({
      //todo:
      url: `app/qrcode/scan-param/get`,
      type: "get",
      data: params,
      headers: {
        "Content-type": "application/x-www-form-urlencoded"
      },
    })
  }
  //二维码埋点，计算
  static visitNum(params) {
    return Request({
      //todo:
      url: `app/qrcode/visit`,
      type: "post",
      data: params,
    })
  }
//楼盘二维码
static sceneParamGet(params) {
  return Request({
    url: "app/weixin/getSceneParam",// + "scene=" + params.scene ,
    type: "get",
    data: params,
    headers: {
      "Content-type": "application/x-www-form-urlencoded"
    },
  })
}
} 



